<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>过渡的高级使用</title>
    <style>
      .outer {
        width: 1300px;
        height: 900px;
        border: 1px solid black;
      }
      .outer:hover .box {
        /*过渡延迟 延迟两秒再过渡*/
        /*transition-delay: 2s;*/
        width: 1300px;
      }
      .box {
        transition-property: all;
        transition-duration: 5s;
        width: 200px;
        height: 100px;
      }
      .box1 {
        background-color: pink;
        /*过渡的方式 平滑 (慢-快-慢)*/
        transition-timing-function: ease;
      }
      .box2 {
        background-color: blue;
        /* 线性 */
        transition-timing-function: linear;
      }
      .box3 {
        /*过渡的方式 (慢-快)*/
        background-color: purple;
        transition-timing-function: ease-in;
      }
      .box4 {
        background-color: green;
        /*过渡的方式  (快-慢)*/
        transition-timing-function: ease-out;
      }
      .box5 {
        /*过渡的方式 (慢-快-慢)*/
        background-color: orange;
        transition-timing-function: ease-in-out;
      }
      .box6 {
        background-color: magenta;
        /* 直接一步到位 不考虑过度 */
        transition-timing-function: step-start;
      }
      .box7 {
        background-color: tomato;
        /*5秒后直接一步到位 考虑过渡*/
        transition-timing-function: step-end;
      }
      .box8 {
        background-color: crimson;
        /*分步数 第一个是多少个步数 第二个开始的时机*/
        transition-timing-function: steps(20,start);
      }
      .box9 {
        background-color: yellowgreen;
        /* 贝塞尔曲线 的运动方式 */
        transition-timing-function: cubic-bezier(.17,.67,1,1.91);
      }
    </style>
</head>
<body>
    <div class="outer">
      <div class="box box1"></div>
      <div class="box box2"></div>
      <div class="box box3"></div>
      <div class="box box4"></div>
      <div class="box box5"></div>
      <div class="box box6"></div>
      <div class="box box7"></div>
      <div class="box box8"></div>
      <div class="box box9"></div>
    </div>
</body>
</html>